﻿cmake_minimum_required (VERSION 3.16)

project ("DearPyGui")

set(MVDIST_ONLY ${MVDIST_ONLY})
set(MV37DIST ${MV37DIST})

add_definitions(-D_USE_MATH_DEFINES)
add_definitions(-DMV_SANDBOX_VERSION="0.1.0.dev27")

if(MV37DIST)
    add_definitions(-DMV_PYTHON_VERSION=37)
else()
    add_definitions(-DMV_PYTHON_VERSION=38)
endif()

# Include sub-projects.
add_subdirectory ("DearPyGui")

if(NOT MVDIST_ONLY)
    add_subdirectory ("DearSandbox")
    add_subdirectory ("ImguiTesting")
endif()

if(WIN32)
    # do nothing
else() # Apple or Linux
	add_subdirectory ("Dependencies/glfw")
endif()
